﻿<UserControl x:Class="SABnzbdNET.Views.ToolbarView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             Height="60" HorizontalAlignment="Stretch">
    <Grid>
    	<Grid.Resources>
		    <DrawingImage x:Key="IconRefresh">
		        <DrawingImage.Drawing>
		            <ImageDrawing Rect="0,0,48,48" ImageSource="/SABnzbdNET;component/Graphics/Toolbar/Refresh.ico" />
		        </DrawingImage.Drawing>
		    </DrawingImage>
		    <DrawingImage x:Key="IconAdd">
		        <DrawingImage.Drawing>
		            <ImageDrawing Rect="0,0,48,48" ImageSource="/SABnzbdNET;component/Graphics/Toolbar/Add.ico" />
		        </DrawingImage.Drawing>
		    </DrawingImage>
    		<DrawingImage x:Key="IconStart">
		        <DrawingImage.Drawing>
		            <ImageDrawing Rect="0,0,48,48" ImageSource="/SABnzbdNET;component/Graphics/Toolbar/Download.ico" />
		        </DrawingImage.Drawing>
		    </DrawingImage>
    		<DrawingImage x:Key="IconStop">
		        <DrawingImage.Drawing>
		            <ImageDrawing Rect="0,0,48,48" ImageSource="/SABnzbdNET;component/Graphics/Toolbar/Close.ico" />
		        </DrawingImage.Drawing>
		    </DrawingImage>
		    <DrawingImage x:Key="IconShutdown">
		        <DrawingImage.Drawing>
		            <ImageDrawing Rect="0,0,48,48" ImageSource="/SABnzbdNET;component/Graphics/Toolbar/Shutdown.ico" />
		        </DrawingImage.Drawing>
		    </DrawingImage>
            <DrawingImage x:Key="IconSettings">
		        <DrawingImage.Drawing>
		            <ImageDrawing Rect="0,0,48,48" ImageSource="/SABnzbdNET;component/Graphics/Toolbar/Settings.ico" />
		        </DrawingImage.Drawing>
		    </DrawingImage>
    		<DrawingImage x:Key="IconInfo">
		        <DrawingImage.Drawing>
		            <ImageDrawing Rect="0,0,48,48" ImageSource="/SABnzbdNET;component/Graphics/Toolbar/Info.ico" />
		        </DrawingImage.Drawing>
		    </DrawingImage>
		</Grid.Resources>
        <ToolBarTray IsLocked="True">
            <ToolBar Name="toolbar" Width="595">
                <Button ToolTip="Refresh" Command="{Binding Path=RefreshInfoCommand}">
                    <Image Height="48" Width="48" Stretch="Uniform" Source="{StaticResource IconRefresh}"></Image>
                </Button>
                <Separator></Separator>
                <Button Name="BtnNew" ToolTip="Add new download task to queue" Command="{Binding Path=OpenAddTaskCommand}">
                    <Image Height="48" Width="48" Stretch="Uniform" Source="{StaticResource IconAdd}"></Image>
                </Button>
                <Button Name="BtnStart" ToolTip="Start SABnzbd server" Command="{Binding Path=StartServerCommand}">
                    <Image Height="48" Width="48" Stretch="Uniform" Source="{StaticResource IconStart}"></Image>
                </Button>
                <Button Name="BtnStop" ToolTip="Pause SABnzbd server" Command="{Binding Path=PauseServerCommand}">
                    <Image Height="48" Width="48" Stretch="Uniform" Source="{StaticResource IconStop}"></Image>
                </Button>
                <Button Name="BtnShutDown" ToolTip="Shut SABnzbd server down" Command="{Binding Path=ShutdownServerCommand}">
                    <Image Height="48" Width="48" Stretch="Uniform" Source="{StaticResource IconShutdown}"></Image>
                </Button>
                <Separator></Separator>
                <Button Name="BtnSettings" ToolTip="Application settings" Command="{Binding Path=OpenSettingsCommand}">
                    <Image Height="48" Width="48" Stretch="Uniform" Source="{StaticResource IconSettings}"></Image>
                </Button>
                <Button Name="BtnInfo" ToolTip="Application info" Command="{Binding Path=OpenAboutCommand}">
                    <Image Height="48" Width="48" Stretch="Uniform" Source="{StaticResource IconInfo}"></Image>
                </Button>
            </ToolBar>
        </ToolBarTray>
    </Grid>
</UserControl>
